
// 封装方法
export const stroage = {
  set (key, value) {
    if (value && typeof value === 'object') {
      window.localStorage.setItem(key, JSON.stringify(value))
      return
    }
    window.localStorage.setItem(key, value)
  },
  get (key) {
    return window.localStorage.getItem(key)
  },
  remove (key) {
    window.localStorage.removeItem(key)
  }
}
// 导出
// stroage
